import { defineStore } from 'pinia'
import {detials} from './public/detail'
import { markRaw } from 'vue'
const Profile = defineStore('useProfile', {
  // 为了完整类型推理，推荐使用箭头函数
  state: () => {
    return {
      detials: markRaw(detials),
      data: {
        // 口算
        'mental calculation': {
          count: 10,
          col: 3,
          level: 1,
          title: '口算'
        },
        'written calculation':{
          count:1,
          col: 3
        },
        'fill mul':{
          count: 10,
          col: 3,
          title: '补充口诀',
          rangemin: 1,
          rangemax: 6
        }
      }
    }
  },
  actions: {}
})

export default Profile
